package com.luyun.frogpay.base.dagger.activity.component;

import android.app.Activity;
import android.content.Context;

import com.luyun.frogpay.base.annotator.ContextForActivity;
import com.luyun.frogpay.base.annotator.ContextForApplication;
import com.luyun.frogpay.base.annotator.PerformActivity;
import com.luyun.frogpay.base.dagger.activity.module.ActivityModule;
import com.luyun.frogpay.base.dagger.app.component.ApplicationComponent;
import com.luyun.frogpay.view.facepay.FacePayResultActivity;
import com.luyun.frogpay.view.home.HomeActivity;
import com.luyun.frogpay.view.login.LoginActivity;

import dagger.Component;

/**
 * @author 无人区
 * @date 2019/10/27 15:40
 * @desc:
 */
@PerformActivity
@Component(dependencies = ApplicationComponent.class,

modules = ActivityModule.class)
public interface ActivityComponent {

    @ContextForApplication
    Context getApplicationContext();

    @ContextForActivity
    Context getActivityContext();

    Activity getActivity();

    void inject(HomeActivity activity);

    void inject(LoginActivity loginActivity);

    void inject(FacePayResultActivity facePayResultActivity);
}
